/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.xiang.jeesite.common.tag.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.xiang.jeesite.common.tree.entity.CommonTree;

/**
 * 公共标签Entity
 * @author xiang
 * @version 2015-11-30
 */
public class CommonTag extends DataEntity<CommonTag> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 内容
	private CommonTree commonTree;		// 标签类型
	private Integer sort;		// 排序
	
	public CommonTag() {
		super();
	}

	public CommonTag(String id){
		super(id);
	}

	@Length(min=0, max=100, message="内容长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public CommonTree getCommonTree() {
		return commonTree;
	}

	public void setCommonTree(CommonTree commonTree) {
		this.commonTree = commonTree;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
}